from urllib.request import urlretrieve
from bs4 import BeautifulSoup
import requests

html=requests.get('https://www.cnblogs.com/zhumengke/p/8847224.html')
bs=BeautifulSoup(html.text,'html.parser')
x=bs.find('img',{'class','aligncenter size-full wp-image-216338'}).attrs['src']
urlretrieve(x,'6.1.1.jpg')
print('结束')
